﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EDM
{
    class RoleAuthoritytranslator
    {

        //To Translate AuthorityDataEntity to AuthorityBusinessEntity
        public static BLL.RoleAuthority TranslatetoRoleAuthorityBE(EDM.RoleAuthority roleauthorityDE)
        {
            BLL.RoleAuthority roleauthorityBE = new BLL.RoleAuthority();
            roleauthorityBE.AuthorityId = roleauthorityDE.AuthorityId;
            roleauthorityBE.RoleId = roleauthorityDE.RoleId;
            return roleauthorityBE;
        }

        //To Translate AuthorityBusinessEntity to AuthorityDataEntity
        public static EDM.RoleAuthority TranslatetoRoleAuthorityDE(BLL.RoleAuthority roleauthorityBE)
        {
            EDM.RoleAuthority roleauthorityDE = new EDM.RoleAuthority();
            roleauthorityDE.AuthorityId = roleauthorityBE.AuthorityId;
            roleauthorityDE.RoleId = roleauthorityBE.RoleId;
            return roleauthorityDE;
        }
    }
}
